const baseURL = process.env.VUE_APP_BASE_URL;
const dataURL = process.env.VUE_APP_DATA_URL;
module.exports = {
  lintOnSave: false,
  configureWebpack: {
    resolve: {
      alias: {
        assets: "@/assets",
        pages: "@/pages",
        api: "@/api",
        utils: "@/utils",
        components: "@/components",
        router: "@/router",
      },
    },
  },
  devServer: {
    port: 3000,
    proxy: {
      "/api": {
        target: baseURL,
        pathRewrite: {
          "^/api": "",
        },
      },
      "/data": {
        target: dataURL,
        pathRewrite: {},
      },
    },
  },
};
